<template>
  <div>
    <input type="text" v-model="txt">
    {{txt}}
  </div>
</template>

<script lang="ts">
  import {Vue, Component} from 'vue-property-decorator';
  import { Route, RawLocation } from 'vue-router';

  @Component({
    beforeRouteLeave(to: Route, from: Route, next: (to?: RawLocation | false | ((vm: Vue) => any) | void) => void ) {
      to.meta.alive = false;
      next();
    },
  })
  export default class NotUpdata extends Vue {
    private txt: string = '';


  }
</script>

<style lang="scss" scoped>

</style>